//折叠
$(document).ready(function () {
    var element = layui.element;
    element.render();
});

//搜索
function saveTwo(cid){
    var postId = document.getElementById("postId").value;
    var userId = document.getElementById("userId"+cid).value;
    var content = document.getElementById("content"+cid).value;
    var userid = document.getElementById("userid").value;
    window.location = '/PetForums/send/sendComTwo?postId='+postId+'&cid='+cid+'&userId='+userId+'&content='+content+'&userid='+userid
    // window.location = '/PetForums/send/sendComTwo?postId='+postId+'&cid='+cid+'&userId='+userId+'&content='+content

}

function saveThree(comId){

    var postId = document.getElementById("postIdThree").value;
    var floor = document.getElementById("floorThree"+comId).value;
    var userId = document.getElementById("userIdThree"+comId).value;
    var content = document.getElementById("contentThree"+comId).value;
    var uId = document.getElementById("uId").value;
    window.location = '/PetForums/send/sendComThree?userId='+userId+'&content='+content+'&floor='+floor+'&postId='+postId+'&uId='+uId
    // window.location = '/PetForums/send/sendComThree?userId='+userId+'&content='+content+'&floor='+floor+'&postId='+postId

}

// function per(){
// alert("xzz");
//     var userId = document.getElementById("userIdThree").value;
//
//     window.location = '/PetForums/info/personal?userId='+userId;
// }
